#coding=utf-8
from django.shortcuts import render
from django.http import HttpResponse
from models import Users
# 主页视图相关函数
def index(request):
	# if request.method=='POST':
		techers = Users.objects.filter(identity=1)
		context={}
		context['techers']=techers
		u=Users.objects.filter(id=int(request.session["id"]))[0]
		context['user']=u
		return render(request,'index.html',context)
	# return HttpResponse("页面找不到")